package cn.sdormitory.component.bindValue.annotation;


import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface BindStoreValue {

    /**
     * storeTable.get(prefixFieldValue+prefixDelimiter+variableFieldValue,property)
     * @return prefix
     */
    String prefixField() default "";

    /**
     * storeTable.get(prefixFieldValue+prefixDelimiter+variableFieldValue,property)
     * @return prefixDelimiter
     */
    String prefixDelimiter() default "_";

    /**
     * storeTable.get(prefixFieldValue+prefixDelimiter+variableFieldValue,property)
     * @return variableField
     */
    String variableField();

    /**
     * storeTable.get(prefixFieldValue+prefixDelimiter+variableFieldValue,property)
     * @return property 为空则代表fieldName
     */
    String property() default "";
}
